<div class="modal fade" id="modal_add" style="padding-top: 150px" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    新增用户
                </h4>
            </div>
            <div class="modal-body">
                <form id="form_add" class="form-horizontal" role="form">
                    <div class="form-group hidden">
                        <label for="firstname" class="col-sm-2 control-label">ID</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="userId" name="id" value="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">用户名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="username_add" name="username" placeholder="请输入用户名" value="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-2 control-label">密&nbsp;&nbsp;&nbsp;码</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="password_add" value="" name="password" placeholder="密码">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">是否可用</label>
                        <div class="radio col-sm-10">
                            <label>
                                <input type="radio" name="isLocked" id="locked_add" value="1" checked > 是
                            </label>
                            <label>
                                <input type="radio" name="isLocked" id="notLocked_add" value="0" >否
                            </label>

                        </div>
                    </div>
                </form>
            </div>

            <div class="modal-footer">
                <button type="button" id="modalCancel" onclick="function close() {
                            $('#modal_add').modal('hide');
                        }" class="btn btn-default" data-dismiss="modal">取消
                </button>
                <button type="button" id="button_add" onclick="addRecord()" class="btn btn-primary">
                    提交
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>